package unitTests;

import scanner.Scanner;
import scanner.Token;

public class ScannerTest {
	public static void main(String[] args) throws Exception
	{
//		Scanner s = new Scanner(new File("tests/testScript1.mawk"));
//		Token token = null;
//		
//		/*while((token = s.getToken()) != null)
//		{
//			System.out.println(token.getTokenString() + " " + token.getType());
//		}*/
//		
//		s = new Scanner(new File("tests/testScript2.mawk"));
//		
//		while((token = s.getToken()) != null)
//		{
//			System.out.println(token.getTokenString() + " " + token.getType());
//		}
	    
	    Scanner s = new Scanner("ENDEOLE$1234{}|*$12abreplaceremoverepmBEGINLINEinsert\"123whileGfor\"123\"(){");
	    Token t = null;
	    while((t = s.getToken()) != null)
	    {
	        System.out.println(t);
	    }
	}
}